var {describe,it,before,after,beforeEach,afterEach} = require('mocha');
let axios = require('axios');
var {expect} = require("chai");

module.exports = function ({url}) {
    describe("index测试",function(){
        it("测试/",async function () {
            let res = await axios.get(url + "/");
            expect(res.status).to.equal(200);
        })
    })
    describe("getClientIp",function(){
        it("/getClientIp",async function () {
            let res = await axios.get(url + "/getClientIp");
            expect(res.status).to.equal(200);
        })
    })
}
